﻿using Password.Models;

namespace Password
{
    internal class Program
    {
        /// <summary>
        /// 维吉尼亚加密法测试
        /// </summary>
        /// <param name="args"></param>
        static void Main(string[] args)
        {
            //用户输入明文和密钥
            Console.Write("Please input your plaintext: ");
            string plain = Console.ReadLine();
            Console.Write("Please input your keytext: ");
            string key = Console.ReadLine();

            //加密
            MyEncoder myEncoder = new MyEncoder();
            myEncoder.PlainText = plain;
            myEncoder.KeyText = key;
            myEncoder.Encode();


            //输出密文
            Console.WriteLine($"the cypher is:{myEncoder.CypherText}");
        }
    }
}